//
//  HttpRequestManager.h
//  LOLBox
//
//  Created by mac on 15-3-27.
//  Copyright (c) 2015年 Honey. All rights reserved.
//

#import <Foundation/Foundation.h>
@class HttpRequestManager;
@class YCHeroDetailModel;

//获取成功失败的block
typedef void (^httpRequestSuccess)(HttpRequestManager *manager,NSMutableArray *arr);
typedef void (^httpRequestFailure)(HttpRequestManager *manager,NSError *error);

//本地数据
typedef void (^localArr)(NSMutableArray *arr);

@interface HttpRequestManager : NSObject
//把数据请求类做成单例，便于任何地方使用
+ (HttpRequestManager *)shareInstance;

//首页的数据获取，用Block进行封装

//这是视频列表的数据请求
- (void)getVideoList:(NSString *)path andPage:(NSInteger)page withSuccess:(httpRequestSuccess)success andFailure:(httpRequestFailure)failure;

//首页资讯的信息
- (void)getNewsInfo:(NSString *)path andPage:(NSInteger)page withSuccess:(httpRequestSuccess)success andFailure:(httpRequestFailure)failure;
//搜索的
- (void)getSeaNewsInfo:(NSString *)path andPage:(NSInteger)page withSuccess:(httpRequestSuccess)success andFailure:(httpRequestFailure)failure;

//英雄信息
- (void)getHerosInfo:(NSString *)path andParameters:(NSDictionary *)parameters withSuccess:(httpRequestSuccess)success andFailure:(httpRequestFailure)failure;

//本地英雄信息
- (void)getLocalHerosInfo:(NSString *)path withSuccess:(localArr)success;
- (void)getLocalFreeHerosInfo:(NSString *)path withSuccess:(localArr)success;

//英雄信息详情
- (YCHeroDetailModel *)getLocalHerosInfoWithEnName:(NSString *)enName;

- (BOOL)downloadZHLWithName:(NSString *)name withServerName:(NSString *)serName withFName:(NSString *)fName withIsSuccess:(void (^)(BOOL isSi))isSuce;

//装备
- (void)getZBInfo:(void (^)(NSMutableArray *))success;
@end
